package offer;

import java.util.Arrays;

class offer03 {
}
class Solution3 {
    public int findRepeatNumber(int[] nums) {
        int temp =0;
        if(nums.length==0)
        {
            return 0;
        }
        Arrays.sort(nums);
        int i;
        for ( i = 0; i <nums.length ; i++) {
            if(nums[i]==nums[i+1]){
                break;
            }
        }
    return nums[i];
    }
}